package com.lizonghui.googleplay.factory;

import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.widget.ListView;

import com.lizonghui.googleplay.utils.UIUtils;

/**
 * Created by Administrator on 2016/6/22.
 * 生产listView
 */
public class ListViewFactory {
    public static ListView createListView(){
        //这里不是LIstVIew不行，而是字体颜色的设置。默认巨人是透明，才以为没有显示
        ListView mListView  = new ListView(UIUtils.getContext());
        //listView的常规设置-->设置选择器
        mListView.setSelector(new ColorDrawable(Color.TRANSPARENT));
        //listView的常规设置-->设置可以快速滑动
        mListView.setFastScrollEnabled(true);
        //listView的常规设置-->设置选择器
        mListView.setDividerHeight(0);
        //listView的常规设置-->设置
        mListView.setCacheColorHint(Color.TRANSPARENT);
        return mListView;
    }
}
